<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Modlogin extends CI_Model {

    function __construct()
    {
        parent::__construct();
    	$this->load->database();

	}
	//login cms
	public function db_auth_login($name,$pw)
		{
				
			$query = $this->db->query("SELECT * FROM partners WHERE name = ? and pwd=? and active=1",array($name,$pw));
			
			return $query->result();
		}
			
	
}
?>